/*
 * Copyright (c) 2012 Keerthi Ramachandran .
 */
package com.kee.example.dao;

import java.util.List;

import com.kee.example.domain.JPAClassEx;
import com.kee.example.util.HibernateUtil;
import org.hibernate.Session;

/**
 * This class... todo (RK) javadoc
 *
 * @author <a href="mailto:Keerthi.Ramachandran@navis.com">Keerthi Ramachandran</a>, 8/29/12
 * @since 2.4. /2012-08-29
 */
public class JPAClassExDao extends BaseDaoImpl {
    private Session _session;
    public List<JPAClassEx> findAll(){
        _session = HibernateUtil.getSessionFactory().openSession();
        _session.beginTransaction();
        return (List<JPAClassEx>) _session.createCriteria(JPAClassEx.class).list();

    }
}
